extends Worker

func _initGame(rec:Recoder):
    rec.addCharacter("海茵",Color8(255,128,128))
    rec.addCharacter("琳",Color8(128,128,128))
    rec.addMusic("bgm","path")
    rec.addImage("hain_base","path")
    rec.addImage("sence_1_bg","path")
    rec.addSence("sence_1","sence_1_bg",self.sence_1_cb)
    rec.startSence("sence_1")

func sence_1_cb(rec:Recoder,sec:Recoder.BSence) -> void:
    sec.play_voice("bgm") #play_voice("bgm",[0.00,-1],100)
    sec.display_image("hain_base") #display_image("hain_base",[100,100])
    sec.say("海茵","对话1") #say("海茵","对话1",2.00)
    rec.getCharacter("海茵").setColor(Color.BLUE)
    sec.hide_image("hain_base")
    sec.stop_voice("bgm")
    var var1 = sec.choice(["选择1","选择2"])
    if var1 == 1:
        sec.jump_to("sence_2")
    elif var1 == 2:
        sec.jump_to("sence_3")

    return